package Service;

import Dao.IUserDao;
import Dao.UserDaoImpl;
import bean.User;

public class UserServiceImpl implements IUserService{
    IUserDao userDao = new UserDaoImpl();
    @Override
    public User login(User user) {
        return userDao.find(user);
    }

    @Override
    public boolean registerUser(User user) {
        return userDao.registerUser(user);
    }
}
